package com.lhy.wcss.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhy.wcss.model.domain.WhitelistSetting;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lhy.wcss.model.dto.PageDTO;
import com.lhy.wcss.model.dto.StatDTO;
import com.lhy.wcss.model.vo.WhitelistSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;


public interface WhitelistSettingService extends IService<WhitelistSetting> {
    /*登录*/
    WhitelistSetting login(WhitelistSetting whitelistSettin);

    Page<WhitelistSettingVO> getPage(PageDTO pageDTO,WhitelistSetting whitelistSetting);

    WhitelistSetting getBySn(String sn);

    boolean saveBySelf(WhitelistSetting whitelistSetting);

    void export(HttpServletResponse response);

    void exportTemp(HttpServletResponse response);

    Map<String,Object> inputUser(MultipartFile file);

    Page<WhitelistSetting> pageList(PageDTO pageDTO, WhitelistSetting whitelistSetting);

    List<StatDTO> stat();
}
